﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TEL.ClientClasses.Private;

namespace TEL.ClientClasses.SipInterfaces
{
    public interface ILineManager
    {
        void SetLineState(string lineCall, CallState state);

        void ToHoldAll(CallState state);
        
        bool HasLine(string lineCall);

        string GetLineIsWait(bool isOutCall);

        int GetLineNumberIsDialTone();

        void CreateSipLines(List<SipLine> lines);

        string SearhLineCall(CallState state);

        CallState GetLineStateByLineCall(string lineCall);

       ////////////////////////////////////////////////////////////////

        event EventHandler<SipLineEventArgs> ActiveLineChange;
        SipLine ActiveLine { get; set; }

        event EventHandler<SipLineEventArgs> TransferLineChange;
        SipLine TransferLine { get; set; }

        event EventHandler<SipLineEventArgs> XferLineChange;
        SipLine XferLine { get; set; }
    }
}
